package com.beyondsoft.dtc.mobile.automation.model;

import java.io.Serializable;
import java.util.ArrayList;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

/**
 * for report server log
 * 
 * @author zyf
 *
 */
public class AppLog implements Serializable {

	@Expose
	@SerializedName("task_id")
	private String taskId = "";

	@Expose
	@SerializedName("device_id")
	private String deviceId = "";

	@Expose
	@SerializedName("app_name")
	private String appName = "";

	private ArrayList<Item> crashs = new ArrayList<Item>();
	private ArrayList<Item> exceptions = new ArrayList<Item>();
	private ArrayList<Item> anr = new ArrayList<Item>();

	public static class Item implements Serializable {

		public String name;
		public int count;
		public String detail;
	}

	public ArrayList<Item> getCrashs() {
		return crashs;
	}

	public void setCrashs(ArrayList<Item> crashs) {
		this.crashs = crashs;
	}

	public ArrayList<Item> getExceptions() {
		return exceptions;
	}

	public void setExceptions(ArrayList<Item> exceptions) {
		this.exceptions = exceptions;
	}

	public ArrayList<Item> getAnr() {
		return anr;
	}

	public void setAnr(ArrayList<Item> anr) {
		this.anr = anr;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

}
